package com.wx.service.impl;

import com.wx.mapper.CollectProductDetailMapperCustom;
import com.wx.mapper.WxCollectProductDetailMapper;
import com.wx.pojo.WxCollectProductDetail;
import com.wx.service.ICollectProductDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectProductDetailServiceImpl implements ICollectProductDetailService {

    @Autowired
    private WxCollectProductDetailMapper wxCollectProductDetailMapper;
    @Autowired
    private CollectProductDetailMapperCustom collectProductDetailMapperCustom;

    @Override
    public List<WxCollectProductDetail> listModel(){
        return wxCollectProductDetailMapper.selectAll();
    }

    @Override
    public List<WxCollectProductDetail> listModelByNumber(String number){
        return collectProductDetailMapperCustom.listModelByNumber(number);
    }

}
